package com.h3c.ptability.support.eos;

import lombok.Builder;
import lombok.Data;

/**
 * @author chenyifan
 * @date 2022/11/16 14:21
 */
@Data
@Builder
public class EosLog {
    /*
            {
        "flag":1,       请求状态 成功=1/失败=0
        "level":"LOW",          操作安全重要性（HIGH, MIDDLE, LOW）
        "ip":"10.90.16.229",        ip
        "requestMethod":"POST",         接口rest类型
        "description":"查询消息详情表",        操作描述
        "methodName":"com.eos.message.controller.MessageController.msgList",        接口方法名
        "userId":"eos_test",        	用户id
        "requestTime":1648605983623,  请求时间
        "requestUrl":"http://localhost:8082/message/msgList",       接口url地址
        "operationType":"READ",     操作类型 读/写/删/其它（READ, WRITE, DELETE, OTHER）
        "applicationId":"eos-system",       eos平台的应用id（必填）
        "serviceId":"eos-message-center",   服务id
        "parameters":"{}"       请求参数
        }
     */

    /**
     * 请求状态 成功=1/失败=0
     */
    private Integer flag;
    private String level;
    private String ip;
    private String requestMethod;
    private String description;
    private String methodName;
    private String userId;
    private Long requestTime;
    private String requestUrl;
    private String operationType;
    private String applicationId;
    private String serviceId;
    private String parameters;


}
